package com.itheima.service;

import com.itheima.pojo.*;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface ClazzService {
    PageResult<Clazz> page(ClazzQueryParam clazzQueryParam);



    @Transactional(rollbackFor = {Exception.class})
    void delete(Integer id);

    void save(Clazz clazz);

    Clazz getInfo(Integer id);

    void update(Clazz clazz);

    List<Clazz> list();
}
